﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PFMGlobals;

namespace PFMKernels
{
    public class PFMTaskFactory
    {
        private PFMTaskFactory() { }
        public static PFMTask CreateTask(string sTask)
        {
            PFMTask result = null;
            if (sTask.Equals(PFMDefinitions.SCHEDULEDTASK,StringComparison.OrdinalIgnoreCase))
                result = new PFMScheduledTask();
            else if (sTask.Equals(PFMDefinitions.SPECIFIEDTASK,StringComparison.OrdinalIgnoreCase))
                result = new PFMSpecifiedTask();
            return result;
        }
    }
}
